package Chpter4;

class Animal1{
	void shout() {
		System.out.println("Animal shouts.");
	}
}
class Dog1 extends Animal1{
	void shout() {
		System.out.println("Wang");
	}
}

public class Example02 {
	public static void main(String[] args) {
		Dog1 dog=new Dog1();
		dog.shout();
	}

}
